<template>
	<view>
		<uni-titles :title="'管理农场'"></uni-titles>
		<uni-tudwhere></uni-tudwhere>
		<uni-grids :list="gridslist"></uni-grids>
		<uni-farmtitle :title="'我的农场'" :num="'58'" serchShow @isshow="show = !show"></uni-farmtitle>
		<uni-serchs v-if="show"></uni-serchs>
		<uni-menu :list="menulist" @mchange="mchange"></uni-menu>
		<uni-farmlist :list="farmlist" @itemClick="itemClick" :rightText="'查看详情'" :rightTextColor="'#8DD16B'"></uni-farmlist>
		<uni-more></uni-more>
		<uni-Helper></uni-Helper>
		<uni-sellingProducts></uni-sellingProducts>
	</view>
</template>

<script>
export default {
	data() {
		return {
			show: false,
			menulist: [{ name: '大棚', num: 12 }, { name: '果园', num: 12 }, { name: '大田', num: 8 }],
			menuact: 0,
			gridslist: [
				{
					name: '画地块',
					id: 1,
					img:
						''
				},
				{
					name: '种植管理',
					id: 2,
					img:
						''
				},
				{
					name: '管地基',
					id: 3,
					img: ''
				},
				{
					name: '物联监测',
					id: 4,
					img:
						''
				},
				{
					name: '环境气象',
					id: 5,
					img:
						''
				},
				{
					name: '巡田地',
					id: 6,
					img:
						''
				}
			],
			farmlist: [
				{
					name: '番茄',
					type: 5,
					zd: 5.2,
					where: '荷花池小花园',
					img:
						''
				},
				{
					name: '8424西瓜',
					type: 3,
					zd: 18.1,
					where: '天府广场小花园',
					img:
						''
				},
				{
					name: '番茄',
					type: 2,
					zd: 5,
					where: '清水河小区',
					img:
						''
				}
			]
		};
	},
	methods: {
		mchange() {},
		itemClick(d) {
			uni.navigateTo({
				url: '/subpkg/guanncDetail/guanncDetail?title='+d.where
			});
		}
	}
};
</script>

<style lang="scss">
	page{
		background: #f6f6f6;
		padding-bottom: 30rpx;
	}
</style>
